import { Component, OnInit } from '@angular/core';
import { LogService } from 'app/modules/log/services/log.service';
import { ActivatedRoute } from '@angular/router';
import { map } from 'rxjs/operators';

@Component({
	selector: 'm-usage-table',
	templateUrl: './usage-table.component.html',
	styleUrls: ['./usage-table.component.scss'],
})
export class UsageTableComponent implements OnInit {
	constructor(private route: ActivatedRoute, private LogService: LogService) {}
	softwareLogger = this.LogService.resource('software');
	id$ = this.route.queryParamMap.pipe(map(query => Number(query.get('id'))));
	ngOnInit() {}
}
